home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 1 Issue 2
/
PDCD-1 - Issue 02.iso
/
_utilities
/
utilities
/
003
/
_mask
/
!MaskUtils
/
!Animator
/
Animator
(
.txt
)
< prev
Wrap
RISC OS BBC BASIC V Source
|
1993-08-19
|
1KB
|
62 lines
>animator
Michel Grimminck 1993
provided with !Mask
sprites must be named 000, 001, 002, ....00n ...0mn ...999
"Enter a sprite animation file/directory"
"OS_File",5,F$
U%,,F%,,L%:F%=(F% >>8)
U%=0
"File doesnot exists":
U%=1
*
F%<>&FF9
"not a spritefile":
Q
"if ro3flag=-1 then ChangeDynamicArea -Spritesize "+
(L%/1024+32))+"K"
"Sload "+F$
U%=2
@
"if ro3flag=-1 then ChangeDynamicArea -Spritesize 256K"
"hit keys 1 to 9 to change speed,"'"P to pause, SPACE to end"
N=!&1400004 -1:NR=0:D=-1:W=4
U%=2
N=0
S$=
("0000"+
(N)),3)
>
"OS_File",5,F$+"."+S$
K%,,F%,,L%:F%=(F% >>8)
N+=1
K%<>1
N-=2
S$=
("0000"+
(NR)),3)
"$
U%=2
"Sload "+F$+"."+S$
"Schoose "+S$
&ED,0,0
U%=2
"Snew"
NR=0
D=-D
NR=N
D=-D
NR+=D
Q%=1
*# A$=
(A$)>0
+
A$="P"
A$="p"
A$=" "
"Snew"
"if ro3flag=-1 then ChangeDynamicArea -Spritesize 0"